<form action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
  <table>
    <?php echo $form ?>
  </table>

  <input type="submit" value="sign in" />
</form>

<script type='text/javascript'>
  document.observe("dom:loaded", function() {
    $('signin_username').focus()
  })
</script>